From: Michaƫl Cadilhac Date: Wed, 7 Mar 2007 12:47:15 +0000 (+0000) Subject: (PC-do-completion): Delete duplicates in the list of possible completions. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~1701 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f091300c7c2e36e23f8f82e468f39615c2df8b87;p=emacs.git (PC-do-completion): Delete duplicates in the list of possible completions. --- diff --git a/lisp/complete.el b/lisp/complete.el index b56dc268c04..5b77f49ebdf 100644 --- a/lisp/complete.el +++ b/lisp/complete.el @@ -560,6 +560,9 @@ of `minibuffer-completion-table' and the minibuffer contents.") (setq poss (cons (car p) poss)))) (setq p (cdr p))))) + ;; If table had duplicates, they can be here. + (delete-dups poss) + ;; Handle completion-ignored-extensions (and filename (not (eq mode 'help))